package com.sun.filesigndemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.TimeZone;

@SpringBootApplication
@ServletComponentScan  //主要是针对webFilter webServlet webListener webServlet在德鲁伊配置的时候配置了 webFilter在listener里面配置了
@MapperScan(basePackages = "com.sun.filesigndemo.bussiness.mapper")
//@ComponentScan(basePackages = "com.sun.filesigndemo")
@EnableCaching
@EnableScheduling
@EnableAsync
public class FilesigndemoApplication {

    public static void main(String[] args) {
        TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai");
        TimeZone.setDefault(tz);
        SpringApplication.run(FilesigndemoApplication.class, args);
    }
}
